﻿<HandleError()> _
Public Class HomeController
    Inherits System.Web.Mvc.Controller

    Function Index() As ActionResult

        ' Always display member page if authenticated.
        If Request.IsAuthenticated Then
            Return RedirectToAction("Member")
        End If

        Return View()
    End Function

    <Authorize()> _
    <AcceptVerbs(HttpVerbs.Get)> _
    Function Member() As ActionResult
        Return View()
    End Function

    <Authorize()> _
    <AcceptVerbs(HttpVerbs.Post)> _
    Function Member(ByVal list As String) As ActionResult
        Return RedirectToAction("Member")
    End Function

    <Authorize()> _
    <AcceptVerbs(HttpVerbs.Get)> _
    Function CreateCharacter() As ActionResult
        Dim model As New CreateCharacterViewModel
        Using db As New TyranntDataContext

        End Using

        Return View(model)
    End Function

    Function About() As ActionResult
        Return View()
    End Function
End Class